<?php
class Wow_Armory_Character
{

    /**
     * Contains the character name as a string.
     * 
     * @var string
     */
    protected $_characterName = null;
    
    /**
     * Creates the object.
     * 
     * @throws Wow_Armory_Exception '' - 1012
     * @param  string $character
     * @return void
     */
    public function __construct($character)
    {
        if (!is_string($character)
            || empty($character)
        ) {
            throw new Wow_Armory_Exception('', 1012);
        }
        
        $this->_characterName = $character;
    }
    
    /**
     * Returns the character name as a string.
     * 
     * @return string
     */
    public function getCharacterName()
    {
        return $this->_characterName;
    }
    
}